import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'home',
            meta: { title: '壹健优品' },
            component: () =>
                import ('@/components/home')
        },
        {
            path: '/login',
            name: 'login',
            meta: { title: '壹健优品登陆' },
            component: () =>
                import ('@/components/login')
        },
        {
            path: '/register',
            name: 'register',
            meta: { title: '壹健优品注册' },
            component: () =>
                import ('@/components/register')
        },
        {
            path: '/FooterNav',
            name: 'FooterNav',
            component: () =>
                import ('@/components/FooterNav'),
            children: [{
                    path: '/HelloWorld',
                    name: 'HelloWorld',
                    component: () =>
                        import ('@/components/HelloWorld')
                },
                {
                    path: '/home',
                    name: 'Home',
                    component: () =>
                        import ('@/components/Home')
                }
            ]
        },
        {
            path: '/memory',
            name: 'Memory',
            component: () =>
                import ('@/components/Memory')
        },
        {
            path: '/ShoppingCart',
            name: 'ShoppingCart',
            component: () =>
                import ('@/components/ShoppingCart')
        },
        {
            path: '/member',
            name: 'Member',
            meta: { title: '壹健优品会员中心' },
            component: () =>
                import ('@/components/Member')
        }, {
            path: '/Mall',
            name: 'Mall',
            meta: { title: '壹健优品商城首页' },
            component: () =>
                import ('@/page/Mall')
        },
        {
            path: '/ConfirmOrder',
            name: 'ConfirmOrder',
            component: () =>
                import ('@/page/ConfirmOrder')
        },
        {
            path: '/order1',
            name: 'order1',
            meta: { title: '壹健优品订单' },
            component: () =>
                import ('@/components/order1/order1')
        },
        {
            path: '/collection',
            name: 'collection',
            component: () =>
                import ('@/components/collection/collection')
        },
        {
            path: '/scguanli',
            name: 'scguanli',
            component: () =>
                import ('@/components/scguanli/scguanli')
        },
        {
            path: '/duihuanjilu',
            name: 'duihuanjilu',
            component: () =>
                import ('@/components/duihuanjilu/duihuanjilu')
        },
        {
            path: '/ProductDetails',
            name: 'ProductDetails',
            meta: { title: '壹健优品产品详情' },
            component: () =>
                import ('@/components/ProductDetails/index')
        },
        {
            path: '/ProductMore',
            name: 'ProductMore',
            component: () =>
                import ('@/components/ProductDetails/More')
        },
        {
            path: '/choosePay',
            name: 'choosePay',
            component: () =>
                import ('@/components/Pay/choosePay')
        },
        {
            path: '/PaySuccess',
            name: 'PaySuccess',
            component: () =>
                import ('@/components/Pay/PaySuccess')
        },
        // {
        //     path: '/Qianggou',
        //     name: 'Qianggou',
        //     component: () =>
        //         import ('@/components/ProductDetails/Qianggou')
        // },
        {
            path: '/addlocation',
            name: 'addlocation',
            component: () =>
                import ('@/components/addlocation/addlocation')
        },
        {
            path: '/dingdan',
            name: 'dingdan',
            component: () =>
                import ('@/components/dingdan/dingdan')
        },
        {
            path: '/Settings',
            name: 'Settings',
            component: () =>
                import ('@/components/Settings')
        },
        {
            path: '/Goods-classify',
            name: 'Goods-classify',
            component: () =>
                import ('@/components/Goods-classify')
        },
        {
            path: '/searchlist',
            name: 'searchlist',
            component: () =>
                import ('@/components/searchlist')
        },
        // 特享专区
        {
            path: '/texiangzhuanqu',
            name: 'texiangzhuanqu',
            component: () =>
                import ('@/components/texiangzhuanqu')
        },
        // 选择地址
        {
            path: '/choseAddress',
            name: 'choseAddress',
            component: () =>
                import ('@/components/address/choseAddress')
        },
        // 拼团优惠
        {
            path: '/groupList',
            name: 'groupList',
            component: () =>
                import ('@/components/groupBuying/groupList')
        },
        // 积分兑换记录
        {
            path: '/integralRecord',
            name: 'integralRecord',
            component: () =>
                import ('@/components/integral/integralRecord')
        },
        // 积分兑换商品详情页
        {
            path: '/integerGoodDetails',
            name: 'integerGoodDetails',
            component: () =>
                import ('@/components/integral/integerlGoodDetails')
        },
        // 订单信息
        // {
        //     path: '/orderlist',
        //     name: 'orderlist',
        //     meta: { title: '壹健优品订单详情' },
        //     component: () =>
        //         import ('@/components/order1/orderList/orderlist')
        // },
        // 确认订单
        // {
        //     path: '/determineExchange',
        //     name: 'determineExchange',
        //     meta: { title: '壹健优品订单详情' },
        //     component: () =>
        //         import ('@/components/integral/determineExchange')
        // },
        // 二级分类
        {
            path: '/Second-class',
            name: 'Second-class',
            meta: { title: '二级分类' },
            component: () =>
                import ('@/components/Second-class')
        },
        // 发起拼团
        {
            path: '/Group-details',
            name: 'Group-details',
            meta: { title: '二级分类' },
            component: () =>
                import ('@/components/Fight-group/Group-details')
        },
        // 订单信息
        {
            path: '/orderlist',
            name: 'orderlist',
            meta: { title: '壹健优品订单详情' },
            component: () =>
                import ('@/components/order1/orderList/orderlist')
        },
        {
            path: '/pingjia',
            name: 'pingjia',
            meta: { title: '壹健优品评价' },
            component: () =>
                import ('@/components/order1/orderList/pingjia')
        },
        // 确认兑换
        {
            path: '/determineExchange',
            name: 'determineExchange',
            meta: { title: '确认兑换' },
            component: () =>
                import ('@/components/integral/determineExchange')
        },
        // 系统消息
        {
            path: '/Myinfo',
            name: 'Myinfo',
            meta: { title: '系统消息' },
            component: () =>
                import ('@/components/info/Myinfo')
        },
        // 反馈结果
        {
            path: '/Result',
            name: 'Result',
            meta: { title: '反馈结果' },
            component: () =>
                import ('@/components/info/Result')
        },
        // 找回密码
        {
            path: '/Retrieve',
            name: 'Retrieve',
            meta: { title: '反馈结果' },
            component: () =>
                import ('@/components/Retrieve')
        },
        // 团购列表页
        {
            path: '/Group-list',
            name: 'Group-list',
            meta: { title: '团购列表页' },
            component: () =>
                import ('@/components/Fight-group/Group-list')
        },
    ]
})